package com.qms.tubu.activity.search;

import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.SearchView;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.View;

import com.qms.tubu.R;
import com.qms.tubu.activity.BaseActivity;

/**
 * Created by Mad on 2015/7/14.
 */
public class SearchActivity extends BaseActivity{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search);
        getSupportActionBar().setDisplayShowTitleEnabled(false);
        View searchView=getLayoutInflater().inflate(R.layout.search_search_view,null);
        Toolbar.LayoutParams params = new  Toolbar.LayoutParams( Toolbar.LayoutParams.MATCH_PARENT,  Toolbar.LayoutParams.MATCH_PARENT);
        getSupportActionBar().setCustomView(searchView,params);
        getSupportActionBar().setDisplayShowCustomEnabled(true);
    }

}
